/*
* @name : elementUI的覆盖样式
*/

@import "./element-variables";

.el-table__expand-icon{
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
  margin-top:10px;
  margin-right: 15px;
}
//未展开按钮点击
.el-table__expand-icon .el-icon-arrow-right:before{
  content: "\e6d9";
  border: 1px solid #ccc;
  padding: 2px;
}
//展开按钮
.el-table__expand-column .cell .el-table__expand-icon--expanded .el-icon-arrow-right:before{
  content: "\e6d8";
  border: 1px solid #ccc;
  padding: 2px;

}

/* 按钮
-------------------------- */
.el-button {
  color: $--color-primary;
  border-color: $--color-primary;
  font-size: $--font-size-base;
  border-radius: 2px;
}

.el-button--primary {
  color: #fff;
  background-color: $--color-primary;
  border-color: $--color-primary;
}

.el-button--danger {
  color: #fff;
  background-color: $--color-danger1;
  border-color: $--color-danger1;
}

/* 面包屑
-------------------------- */
.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}
colgroup {
  flex: 0;
}
.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

/* 弹出层
-------------------------- */
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// 表单按钮居中布局
.el-dialog__footer {
  text-align: center;

  // 按钮
  .el-button{
    width: 200px;
    padding: 10px 0;
    text-align: center;
    border-radius: 2px;
  }
}
.el-dialog__header{
  padding: 20px;
  background: #1B7B87;
}
 .el-dialog__title{
  color: #fff;
  font-size: 16px;
}

// 弹出框关闭按钮
.el-dialog__headerbtn .el-dialog__close {
  color: white;
}

.el-dialog__headerbtn {
  top: 16px;
  right: 10px;
  border: 1px solid white;
  border-radius: 15px;
  padding: 3px;
  width: 30px;
  height: 30px;
}

// 表格自定义
.el-table {
  color: $--font-color-base;
  margin-top: 10px;

  .el-button{
    color: $--table-link-color;
  }

  /deep/ th {
    background: $--table-th-bg-color;
    color: $--font-color-base;
    font-weight: bold;
    padding: 8px 0;
  }
  /deep/ td {
    padding: 4px 0;
  }
}

.el-table--striped .el-table__body tr.el-table__row--striped td {
  background: $--table-stripe-bg-color
}

.el-table__body tr.hover-row.current-row>td, .el-table__body tr.hover-row.el-table__row--striped.current-row>td, .el-table__body tr.hover-row.el-table__row--striped>td, .el-table__body tr.hover-row>td {
  background-color: $--table-tr-hover-bg-color
}

.el-message-box__content {
  color:$--font-color-base;
  font-size: 18px;
  padding: 20px 15px;
}

.el-message-box__btns {
  text-align: center;
  padding: 25px 15px 25px;
  //margin-top: 40px;
}

.el-message-box__status.el-icon-warning {
  display: none;
}

// form
.el-form-item__label {
  text-align: right;
}

// 树
.el-tree{
  font-size: 14px;
  color: #232323;
  line-height: 30px;
  // background-color: #fafafa;
  background-color: #ffffff;
}

// 复选框
.el-checkbox {
  color: $--font-color-base;
}
.el-checkbox__inner {
  background-color: #fff;
  border-color: $--border-color-grey;
  width: 15px;
  height: 15px;
}
.el-checkbox__inner:hover {
  border-color:  $--border-color-grey1;
}
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: $--color-info;
  border-color: $--color-info;
}

// 单选框
.el-radio {
  color: $--font-color-base;
}
.el-radio__inner {
  background-color: #fff;
  border-color: $--border-color-grey1;
  width: 16px;
  height: 16px;
}
.el-radio__inner:hover {
  border-color: $--color-info;
}
.el-radio__input.is-checked .el-radio__inner {
  background-color: #fff;
  border-color: $--border-color-grey1;
}
.el-radio__inner::after {
  width: 9px;
  height: 9px;
  background-color: $--color-info;
}

/* 输入框
-------------------------- */
.el-input__inner {
  color: $--font-color-base;
  border-radius: 3px;
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  background-color: #fff;
  border-color: $--border-color-grey2;
}

/* 表单
-------------------------- */
// label和输入框间距
.el-form-item__label {
  padding-right: 10px;
}

.el-input__prefix {
  right: 5px;
  left: auto!important;
}

.el-input__icon.el-icon-date {
  font-size: 19px;
}
// 时间控件
.el-date-editor {
  .el-icon-date {
    color: #56afbe;
  }
  .el-input__suffix {
    right: 25px;
  }
}

// 提示框
.el-message-box {
  width: 430px;
  vertical-align: middle;
  border-radius: 5px;
  text-align: center;
  .el-button{
    width: 160px;
    height: 35px;
    margin-bottom: 16px;
    padding: 5px 10px;
    border-radius: 2px;
  }
  .messagebox-button:nth-child(even){
    float: left;margin-left: 30px !important;
}
.messagebox-button:nth-child(odd){
    float: right;margin-right: 30px !important;
}
}/*删除弹框换位*/
